package com.youlai.boot.factory.service;

import com.youlai.boot.factory.model.entity.CuttingBedDetails;
import com.youlai.boot.factory.model.form.CuttingBedDetailsForm;
import com.youlai.boot.factory.model.query.CuttingBedDetailsQuery;
import com.youlai.boot.factory.model.vo.CuttingBedDetailsVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.awt.image.BufferedImage;
import java.util.List;

/**
 * 裁床明细服务类
 *
 * @author youlaitech
 * @since 2025-08-24 15:02
 */
public interface CuttingBedDetailsService extends IService<CuttingBedDetails> {

    /**
     *裁床明细分页列表
     *
     * @return {@link IPage<CuttingBedDetailsVO>} 裁床明细分页列表
     */
    IPage<CuttingBedDetailsVO> getCuttingBedDetailsPage(CuttingBedDetailsQuery queryParams);

    /**
     * 获取裁床明细表单数据
     *
     * @param id 裁床明细ID
     * @return 裁床明细表单数据
     */
     CuttingBedDetailsForm getCuttingBedDetailsFormData(Long id);

    /**
     * 新增裁床明细
     *
     * @param formData 裁床明细表单对象
     * @return 是否新增成功
     */
    boolean saveCuttingBedDetails(CuttingBedDetailsForm formData);

    /**
     * 修改裁床明细
     *
     * @param id   裁床明细ID
     * @param formData 裁床明细表单对象
     * @return 是否修改成功
     */
    boolean updateCuttingBedDetails(Long id, CuttingBedDetailsForm formData);

    /**
     * 批量新增裁床明细
     *
     * @param formDataList 裁床明细表单对象列表
     * @return 是否新增成功
     */
    boolean saveBatchCuttingBedDetails(List<CuttingBedDetailsForm> formDataList);

    /**
     * 删除裁床明细
     *
     * @param ids 裁床明细ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteCuttingBedDetailss(String ids);

}
